package io.renren.modules.seller.entity;

import java.io.Serializable;

/**
 * 返回结果
 *
 * @author Administrator
 */
public class Result implements Serializable {

    private boolean success;

    private String message;


    public Result(boolean success, String message) {
        super();
        this.success = success;
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static Result success() {
        return new Result(true, "操作成功");
    }

    public static Result fail() {
        return new Result(false, "操作失败");
    }

    public static Result success(String message) {
        return new Result(true, message);
    }

    public static Result fail(String message) {
        return new Result(false, message);
    }
}
